package com.hwua.service;

import com.hwua.entity.News;

import java.util.List;

public interface INewsService {
    /**
     * 显示查询所有新闻标题
     * @return
     * @throws Exception
     */
    public List<News> showAll() throws  Exception;

    /**
     * 现实查询指定新闻
     * @param id
     * @return
     * @throws Exception
     */
    public News showNewsById(Long id) throws Exception;

}
